class UsersController < ApplicationController
  def index
    @users = User.all
   end

  def new
  	@user = User.new
   end

  def create
    @user = User.new(params[:user])
    @user.save
    session[:user_id] = @user.id
    redirect_to user_blog_posts_path(@user.id)
   end
end